package ${packagePath}.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import ${packagePath}.dao.${entity.name}Dao;
import ${packagePath}.model.${entity.name}Model;
import ${packagePath}.service.${entity.name}Service;

@Service
public class ${entity.name}ServiceImpl implements ${entity.name}Service{

	@Autowired
	private ${entity.name}Dao ${entity.name}DaoImp; 

	<#list entity.finderList as finder>
		public ${finder.returnType}Model findBy${finder.name}(<#list finder.columns as column> ${column.type} ${column.methodName}<#if column_has_next> , </#if> </#list>){
			return ${entity.name}DaoImp.findBy${finder.name}(<#list finder.columns as column>  ${column.methodName}<#if column_has_next> , </#if> </#list>);
		}
	</#list>
}